package com.manage.widgets;

import com.manage.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

/**
 * 显示进度的dialog
 * 
 * @author liyoro
 * 
 * @param context
 * @param title
 * @param progressString
 */
public class CustomProgressDialog extends Dialog {

	private String title = null;
	private String progressString = null;
	private TextView tvProgressStr = null;

	public CustomProgressDialog(Context context, String title,
			String progressString) {
		super(context);
		this.title = title;
		this.progressString = progressString;
	}

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTitle(this.title); // 
		setContentView(R.layout.loading_item);

		tvProgressStr = (TextView) findViewById(R.id.tv_progress_str);
		tvProgressStr.setText(this.progressString);
	}
}
